package com.ruoyi.market.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 营销活动对象 market_activity
 *
 * @author ruoyi
 * @date 2023-01-26
 */
@TableName("market_activity")
public class MarketActivity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(type = IdType.AUTO)
    @TableField("id")
    private Long id;

    /** 活动名称 */
    @Excel(name = "活动名称")
    @TableField("name")
    private String name;

    /** 活动序号 */
    @Excel(name = "活动序号")
    @TableField("seq")
    private Long seq;

    /** 显示位置 */
    @Excel(name = "显示位置")
    @TableField("located")
    private String located;

    /** H5链接 */
    @Excel(name = "H5链接")
    @TableField("link")
    private String link;

    /** 活动规则 */
    @Excel(name = "活动规则")
    @TableField("ruler")
    private String ruler;

    /** banner图 */
    @Excel(name = "banner图")
    @TableField("banner_pic")
    private String bannerPic;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("startime")
    private Date startime;

    /** 截止时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "截止时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("endtime")
    private Date endtime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setSeq(Long seq)
    {
        this.seq = seq;
    }

    public Long getSeq()
    {
        return seq;
    }
    public void setLocated(String located)
    {
        this.located = located;
    }

    public String getLocated()
    {
        return located;
    }
    public void setLink(String link)
    {
        this.link = link;
    }

    public String getLink()
    {
        return link;
    }
    public void setRuler(String ruler)
    {
        this.ruler = ruler;
    }

    public String getRuler()
    {
        return ruler;
    }
    public void setBannerPic(String bannerPic)
    {
        this.bannerPic = bannerPic;
    }

    public String getBannerPic()
    {
        return bannerPic;
    }
    public void setStartime(Date startime)
    {
        this.startime = startime;
    }

    public Date getStartime()
    {
        return startime;
    }
    public void setEndtime(Date endtime)
    {
        this.endtime = endtime;
    }

    public Date getEndtime()
    {
        return endtime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("seq", getSeq())
            .append("located", getLocated())
            .append("link", getLink())
            .append("ruler", getRuler())
            .append("bannerPic", getBannerPic())
            .append("startime", getStartime())
            .append("endtime", getEndtime())
            .toString();
    }
}
